class TagItemBean {
  String title;
  String type;
  bool addedToBottom;
  bool isSelected;

  TagItemBean(this.title, this.type, {this.addedToBottom, this.isSelected}) {
    if (title != 'title') {
      this.title = title;
      this.type = type;
    }
    this.addedToBottom = addedToBottom ?? false;
    this.isSelected = isSelected ?? false;
  }
  void switchButtonState() {
    this.addedToBottom = !this.addedToBottom;
  }

  bool operator ==(object) => object is TagItemBean && object.title == title && object.type==type;

  @override
  // TODO: implement hashCode
  int get hashCode => super.hashCode;

}
